-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make __precompile__(false)
non-fatal for cachecompile / requires
#28402
Conversation
stdlib/Pkg/src/API.jl
Outdated
push!(needs_to_be_precompiled, pkg.name) | ||
end | ||
if stale | ||
printpkgstyle(ctx, :Precompiling, pkg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg
is a PkgId
but this function expects the third argument to be a string, which is why the tests are failing.
And make it equivalent to `exit(125)` Fixes #28384
This is the last fix blocking the next RC. |
now possible, since __precompile__ is the default, and it automatically handles __precompile__(false)
0d75353
to
91cf8b6
Compare
Fixed and rebased. |
end | ||
@test Base.compilecache(Base.PkgId("Baz")) == Base.PrecompilableError() # due to __precompile__(false) | ||
@eval using Baz | ||
@test Base.invokelatest(Baz.baz) == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something in 1.7.0 is breaking this on some machines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaces #28386